const TokenKey = 'token'
const userIdKey = 'userId'


export function getToken() {
    return localStorage.getItem(TokenKey);
}

export function setToken(token) {
    return localStorage.setItem(TokenKey, token);
}

export function removeToken() {
    return localStorage.removeItem(TokenKey);
}

export function getUserId() {
    return localStorage.getItem(userIdKey);
}

export function setUserId(userId) {
    return localStorage.setItem(userIdKey, userId);
}

export function removeUserId() {
    return localStorage.removeItem(userIdKey);
}